package com.efast.dmom.mgmt.controller.mes;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.mes.PmAutoPrintStation;
import com.efast.dmom.mgmt.entity.mes.TwBasLot;
import com.efast.dmom.mgmt.service.mes.PmAutoPrintStationService;

@Controller
@RequestMapping("/AutoPrint")
public class PmAutoPrintStationController {
	@Autowired
	private PmAutoPrintStationService pmAutoPrintStationService;	
	  @RequestMapping(value="/printStation")
	  public @ResponseBody ResultBean savePrintTask(@RequestBody TwBasLot lot) { 
		  //vin号，装车单类型,打印函数 
		  ResultBean resultBean = pmAutoPrintStationService.savePrintTask(lot);
		  return resultBean;
	  }
	 
}
